const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home.vue'),
    meta: {
      title: '首页',
    },
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login.vue'),
    meta: {
      title: '登录',
    },
  },
  {
    // 404页面
    path: '/:pathMatch(.*)*',
    name: 'notFound',
    component: () => import('@/views/notFound.vue'),
    meta: {
      title: '页面未找到',
    },
  },
]

export default routes
